#ifndef USER_COMMON_INNER_H_
#define USER_COMMON_INNER_H_

#define ARRAY_LEN(arr) (sizeof(arr) / sizeof(arr[0]))

#ifdef ENABLE_DPRINT
#define DPRINT(...)	\
	do { \
		printf("=> THREAD_LIB | %s:%d -> ", __FILE__, __LINE__);	\
		printf(__VA_ARGS__);	\
		printf("\n");	\
	} while (0)
#else
#define DPRINT(...)
#endif

//#define DPRINT_INT(var) DPRINT(#var " = %d", var)

#endif /* USER_COMMON_INNER_H_ */
